package org.yejiali.domain.entity;
 import java.util.Date;
import java.io.Serializable;

 import com.baomidou.mybatisplus.annotation.FieldFill;
 import com.baomidou.mybatisplus.annotation.TableField;
 import com.fasterxml.jackson.annotation.JsonFormat;
 import io.swagger.annotations.ApiModel;
 import io.swagger.annotations.ApiModelProperty;
 import lombok.AllArgsConstructor;
 import lombok.Data;
 import lombok.NoArgsConstructor;
 import com.baomidou.mybatisplus.annotation.TableId;
 import com.baomidou.mybatisplus.annotation.TableName;
 /**
 * 评论表(Comment)表实体类
 *
 * @author yejiali
 * @since 2025-02-20 20:28:59
 */
 @SuppressWarnings("serial")
 @Data
 @AllArgsConstructor
 @NoArgsConstructor
 @TableName("sg_comment")
 @ApiModel(description = "添加评论dto")
 public class Comment  {
@TableId
 private Long id;
//评论类型（0代表文章评论，1代表友链评论）
 private String type;
//文章id
 @ApiModelProperty(name = "articleId",value = "文章id")
 private Long articleId;
//根评论id
 private Long rootId;
//评论内容
 private String content;
//所回复的目标评论的userid
 private Long toCommentUserId;
//回复目标评论id
 private Long toCommentId;
 @TableField(fill= FieldFill.INSERT)
 private Long createBy;
 @TableField(fill= FieldFill.INSERT)
 @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
 private Date createTime;
 @TableField(fill= FieldFill.INSERT_UPDATE)
 private Long updateBy;
 @TableField(fill= FieldFill.INSERT_UPDATE)
 @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
 private Date updateTime;
//删除标志（0代表未删除，1代表已删除）
 private Integer delFlag;
 }


